﻿
<%@ Page Language="C#" AutoEventWireup="true"  Inherits="ZX.Web.UI.Controls.miniDataGrid" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<script src="/SFramework/boot.js"></script>
<body style="margin:0px;padding:0px">
    <form id="form1" runat="server">
    <div style="width:100%;height:100%">
        <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
            <table style="width:100%;">
                <tr>
                    <td style="width:100%;">
                        <a class="mini-button" iconCls="icon-add" onclick="add()">增加</a>
                        <a class="mini-button" iconCls="icon-add" onclick="edit()">编辑</a>
                        <a class="mini-button" iconCls="icon-remove" onclick="remove()">删除</a>       
                    </td>
                    <td style="white-space:nowrap;">
                        <input id="key" class="mini-textbox" emptyText="请输入姓名" style="width:150px;" onenter="onKeyEnter"/>   
                        <a class="mini-button" onclick="search()">查询</a>
                    </td>
                </tr>
            </table>           
        </div>
    </div>
    <div id="datagrid1" class="mini-datagrid" style="width:100%;" allowResize="true"
         idField="id" multiSelect="true" url="jsondata.aspx?entity=<%=EntityName%>">
        <div property="columns" >
            <!--<div type="indexcolumn"></div>        -->
            <div type="checkcolumn"  width="15"></div>        
            <%=DataFields %>                   
        </div>
    </div>
    </form>
</body>

<script type="text/javascript">
    mini.parse();

    var grid = mini.get("datagrid1");
        
    $("#datagrid1").height($(document).height() - 37);
      
        mini.parse();
        var grid1 = mini.get("datagrid1")
        grid1.load();
        function formatter_Max(e) {
            e.cellHtml = "a:" + (e.value);
        }


</script>
<script src="../../Scripts/datagrid/list.common.button.js"  type="text/javascript"></script>
<script src="../../Scripts/common/jquery.action.js"  type="text/javascript"></script>
<script src="../../Scripts/ctrls/jquery.fixed.dialog.js" type="text/javascript"></script>
<script src="../../Scripts/ctrls/jquery.fixed.windows.js" type="text/javascript"></script>
<script src="../../Scripts/app/list/model.<% =EntityName %>.js" type="text/javascript"></script>
</html>
